//
//  AppDelegate.m
//  Khmer media
//
//  Created by Rainseylong on 2/11/13.
//  Copyright (c) 2013 imer. All rights reserved.
//

#import "AppDelegate.h"
#import "ViewFactory.h"
#import "HomeViewController.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [ViewFactory loadNib:@"CellDesign"];

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    HomeViewController *viewController = [[HomeViewController alloc] initWithNibName:@"HomeViewController" bundle:nil];
    UINavigationController *mainNavi=[[UINavigationController alloc] initWithRootViewController:viewController];
    
    [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
    
    self.window.rootViewController = mainNavi;
    [self.window makeKeyAndVisible];
    return YES;
}


@end
